/**Copyright 2007 Ultrapower Software Co. Ltd.
 * All right reserved. 
 *
 * 2007-7-30,下午04:33:38
 */
package com.osgix.common.pojo.temp;

import java.io.Serializable;

/**
 * Aug 25, 2008,3:36:04 PM
 * 封装role-system中的数据对象
 * @author zhou
 * 
 * @version 2.0
 */
public class RoleSystem implements Serializable {

	/**
	 * 2009-5-12,下午07:14:14
	 * @author Administrator
	 * @version 2.0
	 *
	 */
	private static final long serialVersionUID = 2138666775509593238L;

	/**
	 * 权限状态标志位：没有权限常量
	 */
	public static final String UN_SYSTEM_PRIVILEGE = "0";

	/**
	 * 权限状态标志位：所有权限常量
	 */
	public static final String ALL_SYSTEM_PRIVILEGE = "1";

	/**
	 * 权限状态标志位：部分权限常量
	 */
	public static final String HALF_SYSTEM_PRIVILEGE = "2";

	/**
	 * 角色ID
	 */
	String roleId = "";

	/**
	 * 应用系统ID
	 */
	String systemId = "";

	/**
	 * 权限状态 0:没有权限；1：全部权限；2：部分权限
	 */
	String privilegeState = UN_SYSTEM_PRIVILEGE;

	/**
	 * 构造函数
	 *
	 */
	public RoleSystem() {
	}

	/**
	 * 全参构造函数
	 * @param propertyId
	 * @param name
	 */
	public RoleSystem(String roleId, String systemId, String privilegeState) {
		this.roleId = roleId;
		this.systemId = systemId;
		this.privilegeState = privilegeState;
	}

	/**
	 * 克隆方法
	 */
	public Object clone() {
		RoleSystem roleSys = new RoleSystem(roleId, systemId, privilegeState);
		return roleSys;
	}

	/**
	 * 
	 */
	public String toString() {
		return roleId + "-" + systemId + "-" + privilegeState;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getSystemId() {
		return systemId;
	}

	public void setSystemId(String systemId) {
		this.systemId = systemId;
	}

	public String getPrivilegeState() {
		return privilegeState;
	}

	public void setPrivilegeState(String privilegeState) {
		this.privilegeState = privilegeState;
	}
}
